import request from './http/request';

export function getUserInfo(data) {
	return request({
		url: '/user/findById',
		method: 'post',
		data,
		hideloading: false
	});
}

export function getLikeList(data) {
	return request({
		url: '/likeArticle/list',
		method: 'post',
		data,
		hideloading: true
	});
}

export function getSaveList(data) {
	return request({
		url: '/collectArticle/list',
		method: 'post',
		data,
		hideloading: true
	});
}
export function getLikeCourse(data) {
	return request({
		url: '/likeCourse/list',
		method: 'post',
		data,
		hideloading: true
	});
}

export function getLikeCourseAll(data) {
	return request({
		url: '/likeCourse/all',
		method: 'post',
		data,
		hideloading: true
	});
}

export function getSaveCourse(data) {
	return request({
		url: '/collectCourse/list',
		method: 'post',
		data,
		hideloading: true
	});
}

export function getSaveCourseAll(data) {
	return request({
		url: '/collectCourse/all',
		method: 'post',
		data,
		hideloading: true
	});
}
